<?php
header("Content-Type: text/html; charset=iso-8859-1");
require 'include.php';
if(!check_admin("commission_technique")) redirect('perso.php?action=admin');
else{
	$no_match = (!empty($_REQUEST['no'])) ? $_REQUEST['no'] : "";
	$equipe = (!empty($_REQUEST['equipe'])) ? $_REQUEST['equipe'] : "";
	$table_row_id = (!empty($_REQUEST['table_row_id'])) ? $_REQUEST['table_row_id'] : 0;
	$action = (!empty($_REQUEST['action'])) ? $_REQUEST['action'] : "";
	if($no_match || $equipe){
		if($action == 'form'){
			if($no_match){
				$match = new match($no_match);
				$match->form_edit($table_row_id);					
			}
			elseif($equipe){
				if($equipe == 'all') {$equipe = ""; $all = 1;}
				else $all = "";
				$match = new match($equipe,"equipe");
				$match->form_edit('',$all);		
			}
		}
	}
	
}
?>